package DataStructure;
public class TextureCoordinate {
    private final float u; // 纹理坐标的 u 分量
    private final float v; // 纹理坐标的 v 分量
    private final float w; // 可选的 w 分量

    public TextureCoordinate( float u, float v) {
        this.u = u;
        this.v = v;
        this.w = 0.0f; // 默认 w 为 0
    }

    public float getU() {
        return u;
    }
    public float getV() {
        return v;
    }
    public float getW() {
        return w;
    }

    @Override
    public String toString() {
        return "TextureCoordinate{" +
                "u=" + u +
                ", v=" + v +
                ", w=" + w +
                '}';
    }
}